// 设置组件测试
/// <reference types="vitest/config" />

import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import path from 'path'

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [vue()],

  // 设置组件测试
  test: {
    environment: 'happy-dom'
  },

  // 配置路径别名
  resolve: {
    alias: {
      "@": path.resolve(__dirname, 'src')
    }
  }
})
